#ifndef DEBUG_H_
# define DEBUG_H_

# include <stdlib.h>
# include <unistd.h>
# include <stdio.h>
# include <curses.h>
# include "structures.h"
# include "caml.h"

/* #define WHERESTR  "[file %s, line %d]: " */
/* #define WHEREARG  __FILE__, __LINE__ */
/* #define DEBUGPRINT2(...)       fprintf(stderr, __VA_ARGS__) */
/* #define DEBUGPRINT(_fmt, ...)  DEBUGPRINT2(WHERESTR _fmt, WHEREARG, __VA_ARGS__) */

/* DEBUGPRINT("hey, x=%d\n", x); */

void			debug_display_ba(value		ba);
void			debug_dispkey(void);
void			debug_display_frame(WINDOW	*w);
int			debug_drawone(p_context		c);
void			debug_quit(void);
void			debug_pause(void);
void			debug_pp(void);
#endif /* !DEBUG_H_ */
